using System.ComponentModel.DataAnnotations.Schema;

namespace Wips.Domain.Models.Authorities.Model
{
    /// <summary>
    /// 用户组与用户关联
    /// </summary>
    [Table("AuthorityUserGroupUsers")]
    [SugarTable("AuthorityUserGroupUsers")]
    public class UserGroupUser : ValueObjectBase
    {
        /// <summary>
        /// 用户组ID
        /// </summary>
        /// <value></value>
        public string UserGroupId { get; set; }
        /// <summary>
        /// 用户组
        /// </summary>
        /// <value></value>
        [Navigate(NavigateType.ManyToOne, nameof(UserGroupId))]
        public UserGroup UserGroup { get; set; }
        /// <>
        /// 用户ID
        /// </summary>
        /// <value></value>
        public string UserId { get; set; }
        /// <summary>
        /// 用户
        /// </summary>
        /// <value></value>
        [Navigate(NavigateType.ManyToOne, nameof(UserId))]
        public User User { get; set; }


    }
}
